package com.jiashihui.server1.test.callback;

/**
 * @author jiashihui
 * @describe: TODO
 * @date 2019/02/18
 */
public class XiaoMing implements EatRice{
    //小明和小李一起吃饭
    public void eatFood() {
        XiaoLi xl = new XiaoLi();
        //A调用B的方法
        xl.setEatRiceListener(this, "大龙虾");
    }

    @Override
    public void eat(String food) {
        System.out.println("小明和小李一起去吃" + food);
    }
}
